package com.maozzi.passport.web.controller.view;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 首页 controller
 *
 * @author maozi
 */
@Slf4j
@Controller
@RequestMapping("view")
public class HomeViewController {

    @GetMapping("/")
    public String index() {
        log.info("index 首页");
        return "index";
    }

    @GetMapping("/login")
    public String login(Model model) {
        return "login";
    }

}
